import os

class Config(object):
    SECRET_KEY = os.urandom(24)

    # 配置数据库
    SQLALCHEMY_DATABASE_URI = 'mysql://test01:123456@127.0.0.1:3306/test01?charset=utf8'
    # 自动会追踪对象的修改并且发送信号
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    # 输出sql语句
    SQLALCHEMY_ECHO = False
    

class Development(Config):
    DEBUG = True

class Product(Config):
    pass

config_map = {
    "develop": Development,
    "product": Product
}